public class Student {
    private String ID;
    private String name;
    private String sex;

    private int Age;
    private float score;

    //---------------------------构造函数---------------------
    Student(String ID,String name, String sex,  int old, float score) {
        this.name = name;
        this.sex = sex;
        this.ID = ID;//仅为一个
        this.Age = old;
        this.score = score;
    }

    Student() {
        name = null;
        sex = null;
        ID = null;
        Age= 0;
        score = 0;
    }

    //-----------------------------get函数--------------------------

    public String getName() {
        return name;
    }

    public String getSex() {
        return sex;
    }

    public String getID() {
        return ID;
    }

    public int getAge() {
        return Age;
    }

    public float getScore() {
        return score;
    }

    //------------------------------set函数---------------------------
    public void setName(String name) {
        this.name = name;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setAge(int old) {
        this.Age = old;
    }

    public void setScore(float score) {
        this.score = score;
    }

    //------------------------tostring函数-------------------------
    public String toString(){
        return ID+"\t"+name+"\t"+sex+"\t"+score+"\t";
    }
    public void show(){
        System.out.format("%-8s%-8s%-4s%-4s",ID,name,sex,score);
    }
}

